class apache {
  require apt::apache
  require pxeserver

  file {
    '/etc/apache2/sites-enabled/000-default.conf':
      notify => Service['apache2'],
      source => "puppet:///modules/${module_name}/000-default.conf";
    '/var/www/html/img':
      ensure => link,
      target => "/var/lib/tftpboot/img";
    '/var/www/html/preseed':
      ensure => link,
      target => "/var/lib/tftpboot/preseed";
  }

  service {
    'apache2':
      enable => true;
  }
}

